import java.io.FileReader;
import java.io.IOException;

/**
 * @ClassName Demo01_FileReader
 * @Description 读取 GBK 编码文件
 * @Author Li
 * @Date 2022/8/12 9:43
 * @ModifyDate 2022/8/12 9:43
 * @Version 1.0
 */
public class Demo01_FileReader {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("src/part10/ch02_TransformStream/File_gbk.txt");
        int read;
        while ((read = fr.read()) != -1) {
            System.out.println((char) read);
        }
        fr.close();
    }
}
